package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.DtsAdmin;
import com.qf.vo.CatVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsAdminMapper extends BaseMapper<DtsAdmin> {

    void updatePassword(@Param("id") Integer id, @Param("password") String newPassword,@Param("date") Date date);

    void deleteAdmin(@Param("id") Integer id,@Param("deleted") Boolean deleted);

    List<CatVo> findAll();
}
